//http请求
var http=require('http');

http.get('http://www.itsource.cn/',function (res) {

    var content='';

    res.on('data',function (str) {

        content+=str;
    })
    res.on('end',function () {
        console.log(content);
    })
});